<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@include file="template/header.jsp"%>
<%@include file="template/navigation.jsp"%>
<%@include file="template/menu.jsp"%>
<div >

	<table id="box-table-a" summary="Employee Pay Sheet">
		<thead>
			<tr>
				<th scope="col">DESIGNATION</th>
				<th scope="col">TYPE</th>
				<th scope="col">CAPACITE REEL</th>
				<th scope="col">CAPACITE EXAMEN</th>
				<th scope="col">ACTION</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${fetchedSalles}" var="salle">
				<tr>
					<td><c:out value="${salle.designation}" /></td>
					<td><c:out value="${salle.type}" /></td>
					<td><c:out value="${salle.capaciteR}" /></td>
					<td><c:out value="${salle.capaciteE}" /></td>
					<td class="td1"><select
						onChange="location = this.options[this.selectedIndex].value;">
							<option value="#">--Action--</option>
							<option value="salle/update?salleId=<c:out value="${salle.id}"/>">modifier</option>
							<option value="salle/delete?salleId=<c:out value="${salle.id}"/>">supprimer</option>
					</select></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<a href="salle/add" class="button blue" style="margin-left:380px;">+ ajouter une salle</a>
</div>

<%@include file="template/footer.jsp"%>
